using System;
using WebService.BusinessEntities;
using WebService.DataContracts;

namespace WebService.ServiceImplementation
{
    public static class TranslateBetweenCasinoUserAndCasinoUser
    {
        public static WebService.BusinessEntities.CasinoUser TranslateCasinoUserToCasinoUser(WebService.DataContracts.CasinoUser from)
        {
            WebService.BusinessEntities.CasinoUser to = new WebService.BusinessEntities.CasinoUser();
            to.user_pass = from.user_pass;
            to.avatar = from.avatar;
            to.birth_date = from.birth_date;
            to.country = from.country;
            to.creation_date = from.creation_date;
            to.email = from.email;
            to.is_active = from.is_active;
            to.last_logon_date = from.last_logon_date;
            to.last_logout_date = from.last_logout_date;
            to.last_update_date = from.last_update_date;
            to.login = from.login;
            to.nick = from.nick;
            to.user_id = from.user_id;
            to.user_name = from.user_name;
            to.user_surname = from.user_surname;
            return to;
        }

        public static WebService.DataContracts.CasinoUser TranslateCasinoUserToCasinoUser(WebService.BusinessEntities.CasinoUser from)
        {
            WebService.DataContracts.CasinoUser to = new WebService.DataContracts.CasinoUser();
            to.user_pass = from.user_pass;
            to.avatar = from.avatar;
            to.birth_date = from.birth_date;
            to.country = from.country;
            to.creation_date = from.creation_date;
            to.email = from.email;
            to.is_active = from.is_active;
            to.last_logon_date = from.last_logon_date;
            to.last_logout_date = from.last_logout_date;
            to.last_update_date = from.last_update_date;
            to.login = from.login;
            to.nick = from.nick;
            to.user_id = from.user_id;
            to.user_name = from.user_name;
            to.user_surname = from.user_surname;
            return to;
        }
    }
}

